home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / os2 / remin301.zip / REMIN300.ZIP / ERR.H < prev    next >
C/C++ Source or Header  |  1992-11-10  |  4KB  |  119 lines

  1. /***************************************************************/
  2. /*                                                             */
  3. /*  ERR.H                                                      */
  4. /*                                                             */
  5. /*  Error definitions.                                         */
  6. /*                                                             */
  7. /*  This file is part of REMIND.                               */
  8. /*  Copyright (C) 1991 by David F. Skoll.                      */
  9. /*                                                             */
  10. /***************************************************************/
  11.  
  12. #define OK                    0
  13. #define E_MISS_END            1
  14. #define E_MISS_QUOTE          2
  15. #define E_OP_STK_OVER         3
  16. #define E_VA_STK_OVER         4
  17. #define E_MISS_RIGHT_PAREN    5
  18. #define E_UNDEF_FUNC          6
  19. #define E_ILLEGAL_CHAR        7
  20. #define E_EXPECTING_BINOP     8
  21. #define E_NO_MEM              9
  22. #define E_BAD_NUMBER         10
  23. #define E_OP_STK_UNDER       11
  24. #define E_VA_STK_UNDER       12
  25. #define E_CANT_COERCE        13
  26. #define E_BAD_TYPE           14
  27. #define E_DATE_OVER          15
  28. #define E_STACK_ERR          16
  29. #define E_DIV_ZERO           17
  30. #define E_NOSUCH_VAR         18
  31. #define E_EOLN             19
  32. #define E_EOF             20
  33. #define E_IO_ERR             21
  34. #define E_LINE_2_LONG        22
  35. #define E_SWERR             23
  36. #define E_BAD_DATE           24
  37. #define E_2FEW_ARGS         25
  38. #define E_2MANY_ARGS         26
  39. #define E_BAD_TIME         27
  40. #define E_2HIGH             28
  41. #define E_2LOW              29
  42. #define E_CANT_OPEN          30
  43. #define E_NESTED_INCLUDE     31
  44. #define E_PARSE_ERR          32
  45. #define E_CANT_TRIG          33
  46. #define E_NESTED_IF          34
  47. #define E_ELSE_NO_IF         35
  48. #define E_ENDIF_NO_IF        36
  49. #define E_2MANY_LOCALOMIT    37
  50. #define E_EXTRANEOUS_TOKEN   38
  51. #define E_POP_NO_PUSH        39
  52. #define E_RUN_DISABLED       40
  53. #define E_DOMAIN_ERR         41
  54. #define E_BAD_ID             42
  55. #define E_RECURSIVE          43
  56. #define E_PARSE_AS_REM       44 /* Not really an error - just returned by
  57.                                    DoOmit to indicate line should be executed
  58.                                    as a REM statement, also. */
  59. #ifdef MK_GLOBALS
  60. #undef EXTERN
  61. #define EXTERN
  62. #else
  63. #undef EXTERN
  64. #define EXTERN extern
  65. #endif
  66.  
  67. EXTERN char *ErrMsg[]
  68.  
  69. #ifdef MK_GLOBALS
  70. = {
  71.    "Ok",
  72.    "Missing ']'",
  73.    "Missing double-quote",
  74.    "Expression too complex - too many operators",
  75.    "Expression too complex - too many operands",
  76.    "Missing ')'",
  77.    "Undefined function",
  78.    "Illegal character",
  79.    "Expecting binary operator",
  80.    "Out of memory",
  81.    "Ill-formed number",
  82.    "Op stack underflow - internal error",
  83.    "Va stack underflow - internal error",
  84.    "Can't coerce",
  85.    "Type mismatch",
  86.    "Date overflow",
  87.    "Stack error - internal error",
  88.    "Division by zero",
  89.    "Undefined variable",
  90.    "Unexpected end of line",
  91.    "Unexpected end of file",
  92.    "I/O error",
  93.    "Line too long",
  94.    "Internal error",
  95.    "Bad date specification",
  96.    "Not enough arguments",
  97.    "Too many arguments",
  98.    "Ill-formed time",
  99.    "Number too high",
  100.    "Number too low",
  101.    "Can't open file",
  102.    "INCLUDE nested too deeply",
  103.    "Parse error",
  104.    "Can't compute trigger",
  105.    "Too many nested IFs",
  106.    "ELSE with no matching IF",
  107.    "ENDIF with no matching IF",
  108.    "Can't OMIT every weekday",
  109.    "Extraneous token(s) on line",
  110.    "POP-OMIT-CONTEXT without matching PUSH-OMIT-CONTEXT",
  111.    "RUN disabled",
  112.    "Domain error",
  113.    "Invalid identifier",
  114.    "Recursive function call detected",
  115.    ""
  116. }
  117. #endif
  118. ;
  119.